package com.woniuxy.relation.app.controller;

import com.woniuxy.commons.util.Result;
import com.woniuxy.commons.util.WebUtil;
import com.woniuxy.relation.infra.dao.model.AccountRelation;
import com.woniuxy.relation.service.service.AccountMessageService;
import com.woniuxy.relation.service.service.AccountRelationService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @auther 黄磊
 * @2022/7/31 17:55
 **/
@RestController
@RequestMapping("test")
public class TestController {
    @Resource
    private AccountRelationService accountRelationService;

    @GetMapping("/demo")
    public Result demo(){
        AccountRelation relation=new AccountRelation();
        relation.setFocusonAccountId(2);
        accountRelationService.save(relation);
        return Result.getInstance().setMsg("测试成功");
    }
}
